import Layout from '@/layout';
const commercialRouter = {
  path: '/commercial',
  component: Layout,
  redirect: '/commercial/list',
  name: 'Commercial',
  meta: {
    title: '门店',
    icon: 'clipboard',
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/commercial/index'),
      name: 'CommercialList',
      meta: { title: '调货管理', icon: '', noCache: true },
    },
    {
      path: 'room',
      component: () => import('@/views/commercial/room.vue'),
      name: 'CommercialRoom',
      meta: { title: '门店管理', icon: '', noCache: true },
    },
    {
      path: 'rider',
      component: () => import('@/views/commercial/rider.vue'),
      name: 'CommercialRider',
      meta: { title: '配送员管理', icon: '', noCache: true },
    },
    {
      path: 'warehouse',
      component: () => import('@/views/commercial/warehouse.vue'),
      name: 'CommercialWarehouse',
      meta: { title: '仓库管理', icon: '', noCache: true },
    },
    {
      path: 'transferAdd',
      component: () => import('@/views/commercial/transferAdd.vue'),
      name: 'CommercialTransferAdd',
      meta: { title: '调拨管理', icon: '', noCache: true },
    },
    {
      path: 'dispatchRecord',
      component: () => import('@/views/commercial/dispatchRecord.vue'),
      name: 'CommercialDispatchRecord',
      meta: { title: '调拨记录', icon: '', noCache: true },
    },
    {
      path: 'carManage',
      component: () => import('@/views/commercial/carManage.vue'),
      name: 'CommercialCarManage',
      meta: { title: '车辆管理', icon: '', noCache: true },
    },
  ],
};

export default commercialRouter;